package com.fzz.learning_forum.serviceImpl;

import com.fzz.learning_forum.dao.UserMapping;
import com.fzz.learning_forum.domain.User;
import com.fzz.learning_forum.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserServiceImpl implements UserService{


    @Autowired
    private UserMapping userMapping;
    @Override
    public User userLogin(String username, String password) {
        return userMapping.userLogin(username,password);
    }

    @Override
    public Integer editUserInfo(User user) {
        return userMapping.editUserInfo(user);
    }
}
